﻿using DAO;
using DTO;
using System;
using System.Collections;
using System.Data.OleDb;

namespace BUS
{
    public class ThucDonBUS
    {
        private ThucDonDTO info = new ThucDonDTO();
        private ThucDonDAO data = new ThucDonDAO();

        public ThucDonDTO ThucDon
        {
            get { return info; }
            set { info = value; }
            
        }

        public void Them()
        {
            data.Them(info);
        }

        public void Xoa(int id)
        {
            data.Xoa(id);
        }

        public void Sua()
        {
            //data.Sua();
        }

        public ArrayList getDsThucDon()
        {
            return data.getDsThucDon();
        }

        public ArrayList TimKiem(DateTime thoigian)
        {
            return data.TimKiem(thoigian);
        }

        public void ThemThucDon(ThucDonDTO td)
        {
            data.ThemThucDon(td);
        }

        public int GetThucDonID()
        {
            return data.GetThucDonID();
        }
    }
}
